﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Helpers;

namespace KCMS.Areas.Admin.Interfaces
{
    public abstract class IImageUploader
    {
        public string Directory = AppDomain.CurrentDomain.BaseDirectory + "/Content/UserImages/upload/";
        protected IPathGenerator _pathGenerator;
        public IImageUploader(IPathGenerator pathGeneretor)
        {
            _pathGenerator=pathGeneretor;
        }
        public abstract string Save(WebImage image,bool thumb=false);
        public abstract void Delete(String path);
        public abstract string Update(WebImage newImage, string lastImage, bool thumb = false);
    }
}